package eerbaar.expression.lib;

import eerbaar.expression.ExpressionFactory;
import eerbaar.expression.internal.lib.Factory;

public class Module {

    public void onModuleLoad() {

        registerServices();
    }

    public void registerServices() {

        // expressions
        ExpressionFactory.registerExpression("and", Factory.andFactory());
        ExpressionFactory.registerExpression("or", Factory.orFactory());
        ExpressionFactory.registerExpression("countElement",
                Factory.countElementFactory());
        ExpressionFactory.registerExpression("countPoints",
                Factory.countPointsFactory());
        ExpressionFactory.registerExpression("message",
                Factory.messageFactory());
        ExpressionFactory.registerExpression("petOnElement",
                Factory.petOnElementFactory());
        ExpressionFactory.registerExpression("findProgram",
                Factory.findProgramFactory());
    }
}
